import { post } from '@/utils/ajax'

export function insertCompositeComp(params) {
  return post('/code/component/composite/insert', params)
}

export function searchCompositeCompByPage(params) {
  return post('/code/component/composite/search', params)
}

export function searchCompositeCompList(params) {
  return post('/code/component/composite/searchAll', params)
}

export function selectCompositeCompById(id) {
  return post('/code/component/composite/selectById', { id })
}

export function updateCompositeCompById(params) {
  return post('/code/component/composite/updateById', params)
}

export function deleteCompositeCompById(id) {
  return post('/code/component/composite/deleteById', { id })
}
